package com.topsun.posclient.finance.view;

import org.eclipse.jface.viewers.ILabelProviderListener;
import org.eclipse.jface.viewers.ITableLabelProvider;
import org.eclipse.swt.graphics.Image;

import com.topsun.posclient.finance.entity.TuneRepositoryEntity;

public class TableViewerLabelProvider implements ITableLabelProvider{

	public Image getColumnImage(Object element, int columnIndex) {
		
		return null;
	}

	public String getColumnText(Object element, int col) {
		
		TuneRepositoryEntity o=(TuneRepositoryEntity)element;
		if(col==0)
		{
			return o.getId();
		}
		if(col==1)
		{
			return o.getName();
		}
		if(col==2)
		{
			return o.getUpName();
		}
		if(col==3)
		{
			return o.getJici();
		}
		if(col==4)
		{
			return o.getBumen();
		}
		if(col==5)
		{
			return o.getPeople();
		}
		if(col==6)
		{
			return o.getPhone();
		}
		if(col==7)
		{
			return o.getAddress();
		}
		if(col==8)
		{
			return o.getBeizhu();
		}
		if(col==9)
		{
			return o.getFuku();
		}
		return null;
		
	}

	public void addListener(ILabelProviderListener listener) {
		// TODO �Զ���ɷ������
		
	}

	public void dispose() {
		// TODO �Զ���ɷ������
		
	}

	public boolean isLabelProperty(Object element, String property) {
		// TODO �Զ���ɷ������
		return false;
	}

	public void removeListener(ILabelProviderListener listener) {
		// TODO �Զ���ɷ������
		
	}



}
